package model

import (
	"time"
)

type TickInfo struct {
	NodeId string
	Sign   string
	Stamp  time.Time
}

func (a *TickInfo) GetByte() ([]byte, error) {
	return Encode(&a)
}

func (a *TickInfo) GetData(data []byte) (*TickInfo, error) {
	err := Decode(data, &a)
	return a, err
}
